<template>
	<view>
		<view class="cu-card menu bg-white">
			<view class="cu-item cu-card-bg text-white">
				<view class="padding flex justify-between">
					<view class="flex flex-direction">
						<text>总资产</text>
						<view class="text-sl">0.00</view>
					</view>
					<view class="">
						<button class="cu-btn bg-white text-red round shadow">充值</button>
					</view>
				</view>

				<view class="flex flex-sub padding">
					<view class="" style="width: 50%;">
						<view class="flex flex-direction">
							<text>累计充值(元)</text>
							<view class="text-xxl">0</view>
						</view>
					</view>
					<view class="">
						<view class="flex flex-direction">
							<text>累计充值(元)</text>
							<view class="text-xxl">0</view>
						</view>
					</view>
				</view>
			</view>
		</view>

		<view class="cu-list grid col-4 no-border solid-bottom">
			<view class="cu-item">
				<view class="cuIcon-text text-red"></view>
				<text>账单记录</text>
			</view>
			<view class="cu-item">
				<view class="cuIcon-text text-red"></view>
				<text>账单记录</text>
			</view>
			<view class="cu-item">
				<view class="cuIcon-text text-red"></view>
				<text>账单记录</text>
			</view>
			<view class="cu-item">
				<view class="cuIcon-text text-red"></view>
				<text>账单记录</text>
			</view>
		</view>

		<view class="padding bg-white">
			<view class="flex justify-around radius">
				<image class="padding-right-xs adt" :src="logo" mode=""></image>
				<image class="padding-left-xs adt" :src="logo" mode=""></image>
			</view>
		</view>

		<view class="cu-list menu-avatar">
			<view class="cu-item" v-for="(item,index) in 3" :key="index">
				<view class="cu-avatar round lg" style="background-image: url();"></view>
				<view class="content">
					<view class="">最新最新最新最新</view>
					<view class="">
						<text>最新的优惠最新最新最新</text>
					</view>
				</view>
				<view class="padding-right-sm">
					<button class="cu-btn line-gray round">立即参与</button>
				</view>
			</view>

		</view>
		
		<view class="cu-list grid col-2 bg-white">
			<view class="cu-item" :class="[index%2==0 ? 'padding-left-xs' : 'padding-right-xs']" v-for="(item,index) in 5" :key="index">
				<image class="radius padding-xs" src="/static/common.jpg" mode="aspectFill"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				logo: this.$api.logo,
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.adt {
		height: 120upx;
	}

	.item-image {
		width: 50vw;
	}

	.cu-card-bg {
		background: linear-gradient(to right, #f33c2c, #f4675b);
	}

	.cu-list.menu-avatar>.cu-item:after {
		border-bottom: none;
	}

	.list-item {
		width: 330rpx;

		.item {
			width: 100%;
			height: 330rpx;

			image {
				height: 100%;
				width: 100%;
				border-radius: 6upx 6upx 0 0;
			}
		}

	}
</style>
